﻿using System;
using System.Collections.Generic;
using System.Text;

namespace MidiSynthLib
{
    /// <summary>
    /// A class which represents an exception which can be raised by the Synth.
    /// </summary>
    public class MidiSynthException : Exception
    {
        private string message;

        /// <summary>
        /// Initializes a new instance of the <see cref="MidiSynthException"/> class.
        /// </summary>
        /// <param name="message">The message.</param>
        public MidiSynthException(string message)
        {
            this.message = message;
        }

        /// <summary>
        /// Gets a message that describes the current exception.
        /// </summary>
        /// <value></value>
        /// <returns>The error message that explains the reason for the exception, or an empty string("").</returns>
        public override string Message
        {
            get
            {
                return message;
            }
        }
    }
}
